<?php 
session_start();
include 'user.php';
include 'talk.php';
$user = new User;
$user->init_for_db($_SESSION['id']);
$status = $user->get_status();
if($status == 0 || $status == 1)
{
    die("FALSE");
}
else if($status == 2)
{
    $talker = new Talker;
    if($talker->get_other_sta($user->get_session_id()) == 1)
    {
	$talker->set_other_sta($user->get_session_id());
	die("TRUE");
    }
    else
    {
	//$talker->set_sta($user->get_session_id());
    	die("TALK");
    }
}
?>